package com.bob.web.common.constant;

/**
 * 名称: CodeConstant<br>
 * 描述:<br>
 * 类型: JAVA<br>
 * 最近修改时间:2017/7/6 10:14<br>
 *
 * @author BoYangsh
 * @version [版本号, V1.0]
 * @since 2017/7/6 10:14
 */
public enum CodeConstant {
	SUCCESS("0000", "成功"),
	NO_LOGIN("1001", "未登录"),
	SYSTEM_ERROR("1002", "系统异常"),
	PAGE_NOT_EXISTED("1003", "页面不存在"),

	USER_NOT_EXISTED("1004", "登录用户不存在"),
	PASSWORD_IS_INCORRECT("1005", "登录密码不正确"),
	ACCOUNT_IS_LOCKED("1006", "账户被锁"),
	LOGIN_MORE_TIMES("1007", "错误登录次数过多"),
	LOGIN_ERROR("1008", "登录未知异常"),
	NO_AUTH("1009", "未授权，无法访问"),
	PARAMS_ERROR("1010", "参数错误");


	private String code;
	private String msg;

	private CodeConstant(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
